import { BadRequestException, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { In, Repository } from 'typeorm';
import { ManagerEntity } from '@/entity/manager.entity';

import { IbaseService } from '@/lib/service/impl/IbaseServiceImpl';
import { ManagerService } from '../managerService';

@Injectable()
export class ManagerServiceImpl
  extends IbaseService<ManagerEntity>
  implements ManagerService
{
  constructor(
    @InjectRepository(ManagerEntity)
    entity: Repository<ManagerEntity>,
  ) {
    super(entity);
  }
 /*  public async isExistPhone(phone: string): Promise<boolean> {
    const has = await this.entity.findOne({
      where: {
        phone,
      },
    });
    if (has) {
      return true;
    }
    return false;
  } */
}
